﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddUser.aspx.cs" Inherits="AddUser_AddUser" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>新增用户</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <asp:SiteMapPath ID="SiteMapPath1" runat="server">
        </asp:SiteMapPath>
    <p>
        &nbsp;
        </p>
           <div style=" text-align: center; clear: both; width: 80%; border: solid 1px black; margin: 0 auto;">
            <br />
                <p>
                    员工号：<asp:TextBox ID="UserID_txt" runat="server"></asp:TextBox><asp:RequiredFieldValidator
                    ID="RequiredFieldValidator4" runat="server" ControlToValidate="UserID_txt" ErrorMessage="*"
                    ValidationGroup="VGroup1"></asp:RequiredFieldValidator>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
                    员工姓名：<asp:TextBox ID="UserName_txt" runat="server"></asp:TextBox><asp:RequiredFieldValidator
                    ID="RequiredFieldValidator5" runat="server" ControlToValidate="UserName_txt" ErrorMessage="*"
                    ValidationGroup="VGroup1"></asp:RequiredFieldValidator>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
                <asp:Button ID="Button1" runat="server" OnClick="Commit_Click" Text="提  交" ValidationGroup="VGroup1" />
            </p>
            <br />
           </div>
        <br />
        <hr />
        <br />
             <div style="text-align: center;clear: both; width: 80%; border: solid 1px black; margin: 0 auto;">
                <br />
                <p>
                    员工姓名：<asp:TextBox ID="TextBox6" runat="server"></asp:TextBox><asp:RequiredFieldValidator
                        ID="RequiredFieldValidator6" runat="server" ControlToValidate="TextBox6" ErrorMessage="*"
                        ValidationGroup="VGroup2"></asp:RequiredFieldValidator>&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button ID="Button2" runat="server" OnClick="SearchByName_Click" Text="查  询" ValidationGroup="VGroup2" />
                </p>
                <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                    BackColor="White" BorderColor="White" BorderStyle="Ridge" 
                    BorderWidth="2px" CellPadding="3"
                    CellSpacing="1" GridLines="None" PageSize="20" Width="100%" 
                    onpageindexchanging="GridView1_PageIndexChanging" 
                    onrowdatabound="GridView1_RowDataBound" 
                    onrowdeleting="GridView1_RowDeleting" DataKeyNames="UserID,UserName">
                    <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                    <Columns>
                        <asp:BoundField DataField="UserID" HeaderText="测试员工号" />
                        <asp:BoundField DataField="UserName" HeaderText="测试员姓名" />
                        <asp:CommandField ShowDeleteButton="True" />
                    </Columns>
                    <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                    <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                    <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                </asp:GridView>
                <br />
            </div>
       </div>
    </form>
</body>
</html>
